package gyw.spring.cloud.client_feign.feign.api;

import gyw.spring.cloud.client_feign.feign.config.FeignConfig;
import gyw.spring.cloud.client_feign.hystrix.DemoHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * TODO
 *
 * @author 关彦武
 * @date 2020/6/9 17:11
 */
@FeignClient(value="serverdemo",configuration = FeignConfig.class,fallback = DemoHystrix.class)
public interface DemoClientFeign {

    @GetMapping("/demo/mes")
    String getMes();
}
